package com.yfp.operation.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yfp.common.core.text.BigDecimalSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 券包销售数据查询结果
 */
@Data
public class PackageSalesDataForSinglePackageVO {

    /**
     * 点位名称
     */
    @Schema(description = "点位名称")
    private String positionName;

    /**
     * 设备名称
     */
    @Schema(description = "设备名称")
    private String machineName;

    /**
     * 设备编号
     */
    @Schema(description = "设备编号")
    private String machineId;

    /**
     * 已售份数
     */
    @Schema(description = "已售份数")
    private Long soldCopies;

    /**
     * 已售份数占比
     */
    @JsonSerialize(using = BigDecimalSerializer.class)
    @Schema(description = "已售份数占比")
    private BigDecimal soldCopiesRate;

    /**
     * 已售总金额（元）
     */
    @JsonSerialize(using = BigDecimalSerializer.class)
    @Schema(description = "已售总金额（元）")
    private BigDecimal totalSalesAmount;
}
